package com.jiangjiang.eshop.auth.convert;

import com.jiangjiang.eshop.auth.domain.AccountRoleRelationshipEntity;
import com.jiangjiang.eshop.auth.dto.AccountRoleRelationshipDTO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @ClassName AccountRoleRelationshipConvert
 * @Description TODO
 * @Author jhw
 * @Date 2021/7/7 5:44
 * @Version 1.0
 **/
@Mapper(componentModel = "spring")
public interface AccountRoleRelationshipConvert {

    List<AccountRoleRelationshipDTO> convertEntity2DTO(List<AccountRoleRelationshipEntity> queryRoleRelationsByAccountId);


    List<AccountRoleRelationshipEntity> convertDTO2Entity(List<AccountRoleRelationshipDTO> roleRelations);
}
